package u1project.server;

import java.io.IOException;
import java.net.ServerSocket;

public class MainServer {

	public static void main(String[] args) {
		// 监听在6666端口，192.168.1.140
		try {
			ServerSocket st = new ServerSocket(6666);
			System.out.println("服务器启动成功了。。。");
			while (true) {
				new ServerThread(st.accept()).start();
			}
		} catch (IOException e) {
			// jvm_bind error
			e.printStackTrace();
		}

	}

}
